package info.zhoutian.blog.exception;

import info.zhoutian.blog.enums.ResultEnums;

/**
 * Created by Administrator on 2018/8/24.
 */
public class GirlException extends RuntimeException {

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public GirlException(ResultEnums enums) {
        super(enums.getMsg());
        this.code = enums.getCode();
    }
}
